home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6255 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  815 b 

  1. Path: river.tay.ac.uk!insc3npt
  2. From: insc3npt@river.tay.ac.uk (N Thomson)
  3. Newsgroups: comp.lang.c
  4. Subject: Help Required with curses "setattr"
  5. Message-ID: <1996Feb23.143730.24705@river.tay.ac.uk>
  6. Date: 23 Feb 96 14:37:30 GMT
  7. Reply-To: N.THOMSON@BCS.ORG.UK
  8. Organization: University of Abertay Dundee
  9.  
  10. Hi.
  11.  
  12. I'm trying to write a program on a DEC Alpha which uses curses functions to 
  13. display the output.  Everythin works OK except for the settattr function (for 
  14. stdscr) to set bold and revserse attributes.
  15.  
  16. Code sample:
  17.  
  18. initscr() ;
  19. setattr(_BLINK) ;
  20. printw("Somes Text") ;
  21. clrattr(_BLINK) ;
  22. .
  23. .
  24. .
  25. refresh() ;
  26. .
  27. .
  28. .
  29. endwin() ;
  30.  
  31. (including the curses header file).
  32.  
  33. According to the docs this is correct but the text is not displayed in bold.
  34.  
  35. If anyone has any ideas please let me know.
  36.  
  37. Nick
  38.  
  39. N.Thomson@bcs.org.uk
  40.